package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceSuppliespriceMapper;
import com.ruoyi.service.domain.ServiceSuppliesprice;
import com.ruoyi.service.service.IServiceSuppliespriceService;

/**
 * 耗材与价格调整对照Service业务层处理
 * 
 * @author ZDL
 * @date 2024-10-21
 */
@Service
public class ServiceSuppliespriceServiceImpl implements IServiceSuppliespriceService 
{
    @Autowired
    private ServiceSuppliespriceMapper serviceSuppliespriceMapper;

    /**
     * 查询耗材与价格调整对照
     * 
     * @param suppliespriceId 耗材与价格调整对照主键
     * @return 耗材与价格调整对照
     */
    @Override
    public ServiceSuppliesprice selectServiceSuppliespriceBySuppliespriceId(Long suppliespriceId)
    {
        return serviceSuppliespriceMapper.selectServiceSuppliespriceBySuppliespriceId(suppliespriceId);
    }

    /**
     * 查询耗材与价格调整对照列表
     * 
     * @param serviceSuppliesprice 耗材与价格调整对照
     * @return 耗材与价格调整对照
     */
    @Override
    public List<ServiceSuppliesprice> selectServiceSuppliespriceList(ServiceSuppliesprice serviceSuppliesprice)
    {
        return serviceSuppliespriceMapper.selectServiceSuppliespriceList(serviceSuppliesprice);
    }

    /**
     * 新增耗材与价格调整对照
     * 
     * @param serviceSuppliesprice 耗材与价格调整对照
     * @return 结果
     */
    @Override
    public int insertServiceSuppliesprice(ServiceSuppliesprice serviceSuppliesprice)
    {
        return serviceSuppliespriceMapper.insertServiceSuppliesprice(serviceSuppliesprice);
    }

    /**
     * 修改耗材与价格调整对照
     * 
     * @param serviceSuppliesprice 耗材与价格调整对照
     * @return 结果
     */
    @Override
    public int updateServiceSuppliesprice(ServiceSuppliesprice serviceSuppliesprice)
    {
        return serviceSuppliespriceMapper.updateServiceSuppliesprice(serviceSuppliesprice);
    }

    /**
     * 批量删除耗材与价格调整对照
     * 
     * @param suppliespriceIds 需要删除的耗材与价格调整对照主键
     * @return 结果
     */
    @Override
    public int deleteServiceSuppliespriceBySuppliespriceIds(Long[] suppliespriceIds)
    {
        return serviceSuppliespriceMapper.deleteServiceSuppliespriceBySuppliespriceIds(suppliespriceIds);
    }

    /**
     * 删除耗材与价格调整对照信息
     * 
     * @param suppliespriceId 耗材与价格调整对照主键
     * @return 结果
     */
    @Override
    public int deleteServiceSuppliespriceBySuppliespriceId(Long suppliespriceId)
    {
        return serviceSuppliespriceMapper.deleteServiceSuppliespriceBySuppliespriceId(suppliespriceId);
    }
}
